package com.sunchen.asc.service.item.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ItemDepartmentVo implements Serializable {

    private Long id;

    @ApiModelProperty(value="名称",name="name")
    @NotEmpty(message = "不能为空")
    private String name;

    @ApiModelProperty(value="父级id",name="parentId")
    @NotNull(message = "不能为空")
    private Long parentId;

    @ApiModelProperty(value="编码",name="code")
    @NotEmpty(message = "不能为空")
    private String code;

    @ApiModelProperty(value="描述",name="description")
    private String description;

    public ItemDepartmentVo(){}

    public ItemDepartmentVo(Long id,String name,Long parentId, String code, String description) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.code = code;
        this.description = description;
    }
}
